home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Draw / Include / RRectShp.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.4 KB  |  95 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                RRectShp.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef RRECTSHP_H
  13. #define RRECTSHP_H
  14.  
  15. #ifndef CONSTANT_H
  16. #include "Constant.h"
  17. #endif
  18.  
  19. #ifndef BASESHP_H
  20. #include "BaseShp.h"
  21. #endif
  22.  
  23. #ifndef BOUNDSHP_H
  24. #include "BoundShp.h"
  25. #endif
  26.  
  27. // ----- OS Layer -----
  28.  
  29. #ifndef FWPOINT_H
  30. #include "FWPoint.h"
  31. #endif
  32.  
  33. // ----- Foundation Layer -----
  34.  
  35. #ifndef FWRUNTYP_H
  36. #include "FWRunTyp.h"
  37. #endif
  38.  
  39. //========================================================================================
  40. // Forward Declarations
  41. //========================================================================================
  42.  
  43. /*#if FW_LIB_EXPORT_PRAGMAS
  44. #pragma import on
  45. #endif
  46. class FW_CLASS_ATTR ODFacet;
  47. class FW_CLASS_ATTR ODShape;
  48. class FW_CLASS_ATTR CDrawPart;
  49. class FW_CLASS_ATTR CDrawPublishLink;
  50. class FW_CLASS_ATTR CDrawSubscribeLink;
  51. class FW_CLASS_ATTR FW_CGraphicContext;
  52. class FW_CLASS_ATTR FW_CMouseEvent;
  53. class FW_CLASS_ATTR FW_CRectShape;
  54. class FW_CLASS_ATTR FW_PInk;
  55. class FW_CLASS_ATTR FW_PStyle;
  56. class FW_CLASS_ATTR FW_CRect;
  57. #if FW_LIB_EXPORT_PRAGMAS
  58. #pragma import off
  59. #endif
  60.  
  61. class FW_CLASS_ATTR CDrawFacetClipper;*/
  62.  
  63. //========================================================================================
  64. // class CRoundRectShape
  65. //========================================================================================
  66.  
  67. class FW_CLASS_ATTR CRoundRectShape : public CBoundedShape
  68. {
  69. public:
  70.     FW_DECLARE_CLASS
  71.  
  72. public:
  73.     CRoundRectShape();
  74.     CRoundRectShape(FW_CReadableStream& archive);
  75.     virtual ~CRoundRectShape();
  76.         
  77.     // ----- Shape -----
  78.     virtual void        GetClipRegion(Environment* ev, ODShape* clipRegion);
  79.     virtual ODShape*    CreateShapeOutline(Environment *ev);
  80.  
  81.     virtual FW_Boolean    HitTest(Environment *ev, FW_CGraphicContext& gc, const FW_CMouseEvent& theMouseEvent) const;
  82.     virtual void        RenderShape(Environment* ev, ODFacet* facet, FW_CGraphicContext& gc);
  83.  
  84.     // ----- Archiving -----
  85.     static void*         Read(FW_CReadableStream& archive);
  86.     virtual void        Flatten(FW_CWritableStream& archive);
  87.  
  88. private:
  89.     virtual void        OutlineShape(FW_CGraphicContext& gc, const FW_PInk& ink, const FW_PStyle& style, const FW_CRect& rect);
  90.  
  91. private:
  92.     FW_CPoint            fOvalSize;
  93. };
  94.  
  95. #endif